<?php
require_once("loginView.php");
require_once(CORE_DIR.'userModel.php');

class loginStatusAction extends AuthAction{

	function __construct(){
		$this->view = new loginView();
	}

	public function run($get, $post, $viewtype) {
		parent::run($get,$post,$viewtype);
		
		$uDto = $_SESSION[SESSION_USER_OBJECT];
		
		$uid = $uDto->getId();
		$userType = $uDto->getRole();
		
		$this->view->setProperty("uid",$uid);
		$this->view->setProperty("userType",$userType);		
		$this->view->showLoginStatus();
	}
}
?>